#include <stdio.h>
int main()
{
	int i=1,j=2,m;
	while(i<=150)
	{
		m=j;
		while(j%2==0)
			j=j/2;
		while(j%3==0)
			j=j/3;
		while(j%5==0)
			j=j/5;
		if(j==1)
		{
			printf("%d ",m);
			i++;
		}
		j=m+1;
	}
	printf("\n");
}
